import { defineStore } from 'pinia'

export const useUserStore = defineStore({
	id: 'user', // id必填，且需要唯一
	state: () => {
		return {
			userInfo: {}
		}
	},
	actions: {
		update(key, value) {
			this[key] = value
			console.log(this[key], '已更新！')
		}
	},
	getters: {}
})
